package net.lahuobao.mall.entity.admin.querymodel;

import net.lahuobao.export.datasoruce.annotation.ExportField;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/5/17.
 */
public class MallEcardRebateModel {


    @ExportField(title = "", isShow = 0, sort = 10)
    private Integer id;

    /**
     * 返回类型 0:点数,1:直返
     */
    @ExportField(title = "", isShow = 0, sort = 20)
    private Integer rebatetype;

    @ExportField(title = "返点类型", sort = 30)
    private String rebatetypeName;

    /**
     * 返点点数
     */
    @ExportField(title = "返点点数", sort = 40)
    private BigDecimal rebatenum;

    /**
     * 返点金额
     */
    @ExportField(title = "返点金额", sort = 50)
    private BigDecimal rebatemoney;

    /**
     * 返点时间
     */
    @ExportField(title = "返点时间", sort = 60, isTranf = 1, tranfType = 2)
    private Timestamp rebatetime;

    @ExportField(title = "返点操作人", sort = 70)
    private String rebateUserName;

    @ExportField(title = "买家", sort = 71)
    private String buyer;

    @ExportField(title = "订单总金额", sort = 72)
    private BigDecimal orderMoney;

    /**
     * 退回金额
     */
    @ExportField(title = "退回金额", sort = 80)
    private BigDecimal returnmoney;

    /**
     * 退回时间
     */
    @ExportField(title = "退回时间", sort = 90)
    private Timestamp returntime;

    /**
     * 退回原因
     */
    @ExportField(title = "退回原因", sort = 91)
    private String returnreason;

    @ExportField(title = "退回操作人", sort = 100)
    private String returnUserName;

    /**
     * 状态 0：返点 1：部分退回，2：全部退回
     */
    @ExportField(title = "", isShow = 0, sort = 101)
    private Integer state;

    @ExportField(title = "状态", sort = 110)
    private String stateName;


    //返点复核人名字
    @ExportField(title = "返点复核人", sort = 120)
    private String rebateAuditUserName;

    /**
     * 返点复核状态:0未审核，1审核通过，2审核不通过
     */
    @ExportField(title = "", isShow = 0, sort = 121)
    private Integer rebateauditstate;

    @ExportField(title = "返点复核状态", sort = 130)
    private String rebateauditstateName;

    /**
     * 返点复核时间
     */
    @ExportField(title = "返点复核时间", sort = 140)
    private Timestamp rebatereviewtime;

    /**
     * 返点未通过原因
     */
    @ExportField(title = "返点复核未通过原因", sort = 150)
    private String rebaterejectreason;


    //退回复核人名字
    @ExportField(title = "退回复核人", sort = 160)
    private String returnAuditUserName;

    /**
     * 退回复核状态:0未审核，1审核通过，2审核不通过
     */
    @ExportField(title = "", isShow = 0, sort = 161)
    private Integer returnauditstate;

    @ExportField(title = "退回复核状态", sort = 170)
    private String returnauditstateName;

    /**
     * 退回复核时间
     */
    @ExportField(title = "退回复核时间", sort = 180)
    private Timestamp returnreviewtime;

    /**
     * 退回未通过原因
     */
    @ExportField(title = "退回未通过原因", sort = 190)
    private String returnrejectreason;


    //返点开始时间
    @ExportField(title = "", isShow = 0, sort = 10)
    private String rebateTimeStart;


    //返点结束时间
    @ExportField(title = "", isShow = 0, sort = 10)
    private String rebateTimeEnd;

    //退回开始时间
    @ExportField(title = "", isShow = 0, sort = 10)
    private String returnTimeStart;


    //退回结束时间
    @ExportField(title = "", isShow = 0, sort = 10)
    private String returnTimeEnd;


    public String getRebatetypeName() {
        if (null == this.rebatetype) {
            return "";
        } else {
            return this.rebatetype.intValue() == 0 ? "点数" : "直返";
        }
    }

    public void setRebatetypeName(String rebatetypeName) {
        this.rebatetypeName = rebatetypeName;
    }


    public void setReturnUserName(String returnUserName) {
        this.returnUserName = returnUserName;
    }

    public String getStateName() {
        if (null == this.state) {
            return "";
        }
        switch (this.state) {
            case 0:
                return "返点";
            case 1:
                return "部分退回";
            case 2:
                return "全部退回";
        }
        return stateName;
    }


    public String getRebateauditstateName() {
        if (null == this.rebateauditstate) {
            return "";
        }
        switch (this.rebateauditstate) {
            case 0:
                return "未复核";
            case 1:
                return "复核通过";
            case 2:
                return "复核不通过";
        }
        return rebateauditstateName;
    }

    public void setRebateauditstateName(String rebateauditstateName) {
        this.rebateauditstateName = rebateauditstateName;
    }

    public String getReturnauditstateName() {
        if (null == this.returnauditstate) {
            return "";
        }
        switch (this.returnauditstate) {
            case 0:
                return "未复核";
            case 1:
                return "复核通过";
            case 2:
                return "复核不通过";
        }
        return returnauditstateName;
    }

    public void setReturnauditstateName(String returnauditstateName) {
        this.returnauditstateName = returnauditstateName;
    }

    public String getBuyer() {
        return buyer;
    }

    public void setBuyer(String buyer) {
        this.buyer = buyer;
    }


    public BigDecimal getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(BigDecimal orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getRebateTimeStart() {
        return rebateTimeStart;
    }

    public void setRebateTimeStart(String rebateTimeStart) {
        this.rebateTimeStart = rebateTimeStart;
    }

    public String getRebateTimeEnd() {
        return rebateTimeEnd;
    }

    public void setRebateTimeEnd(String rebateTimeEnd) {
        this.rebateTimeEnd = rebateTimeEnd;
    }

    public String getReturnTimeStart() {
        return returnTimeStart;
    }

    public void setReturnTimeStart(String returnTimeStart) {
        this.returnTimeStart = returnTimeStart;
    }

    public String getReturnTimeEnd() {
        return returnTimeEnd;
    }

    public void setReturnTimeEnd(String returnTimeEnd) {
        this.returnTimeEnd = returnTimeEnd;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRebatetype() {
        return rebatetype;
    }

    public void setRebatetype(Integer rebatetype) {
        this.rebatetype = rebatetype;
    }

    public BigDecimal getRebatenum() {
        return rebatenum;
    }

    public void setRebatenum(BigDecimal rebatenum) {
        this.rebatenum = rebatenum;
    }

    public BigDecimal getRebatemoney() {
        return rebatemoney;
    }

    public void setRebatemoney(BigDecimal rebatemoney) {
        this.rebatemoney = rebatemoney;
    }

    public Timestamp getRebatetime() {
        return rebatetime;
    }

    public void setRebatetime(Timestamp rebatetime) {
        this.rebatetime = rebatetime;
    }

    public String getRebateUserName() {
        return rebateUserName;
    }

    public void setRebateUserName(String rebateUserName) {
        this.rebateUserName = rebateUserName;
    }

    public BigDecimal getReturnmoney() {
        return returnmoney;
    }

    public void setReturnmoney(BigDecimal returnmoney) {
        this.returnmoney = returnmoney;
    }

    public Timestamp getReturntime() {
        return returntime;
    }

    public void setReturntime(Timestamp returntime) {
        this.returntime = returntime;
    }

    public String getReturnreason() {
        return returnreason;
    }

    public void setReturnreason(String returnreason) {
        this.returnreason = returnreason;
    }

    public String getReturnUserName() {
        return returnUserName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getRebateAuditUserName() {
        return rebateAuditUserName;
    }

    public void setRebateAuditUserName(String rebateAuditUserName) {
        this.rebateAuditUserName = rebateAuditUserName;
    }

    public Integer getRebateauditstate() {
        return rebateauditstate;
    }

    public void setRebateauditstate(Integer rebateauditstate) {
        this.rebateauditstate = rebateauditstate;
    }

    public Timestamp getRebatereviewtime() {
        return rebatereviewtime;
    }

    public void setRebatereviewtime(Timestamp rebatereviewtime) {
        this.rebatereviewtime = rebatereviewtime;
    }

    public String getRebaterejectreason() {
        return rebaterejectreason;
    }

    public void setRebaterejectreason(String rebaterejectreason) {
        this.rebaterejectreason = rebaterejectreason;
    }

    public String getReturnAuditUserName() {
        return returnAuditUserName;
    }

    public void setReturnAuditUserName(String returnAuditUserName) {
        this.returnAuditUserName = returnAuditUserName;
    }

    public Integer getReturnauditstate() {
        return returnauditstate;
    }

    public void setReturnauditstate(Integer returnauditstate) {
        this.returnauditstate = returnauditstate;
    }

    public Timestamp getReturnreviewtime() {
        return returnreviewtime;
    }

    public void setReturnreviewtime(Timestamp returnreviewtime) {
        this.returnreviewtime = returnreviewtime;
    }

    public String getReturnrejectreason() {
        return returnrejectreason;
    }

    public void setReturnrejectreason(String returnrejectreason) {
        this.returnrejectreason = returnrejectreason;
    }
}





